<?php
require_once('libs/MySmarty.php');
require_once('libs/DbAccess.php');
require_once('classes/site_index.class.php');

$formPage = new site_index();

$_action = isset($_REQUEST['actionType']) ? $_REQUEST['actionType'] : 'view';

switch($_action) {
    case 'del':
        $formPage->deletBlog($_GET);
        break;
    case 'submit':
		// todo
        break;
    case 'view':
    default:
        // viewing the guestbook
        $formPage->displayForm($_GET);   
        break;   
}

?>